import java.util.Scanner;

public class 打印正方形 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入正方形边长");
        int 边长 = scanner.nextInt();

        for (float i=1;i<=边长;i++){
            for (float j=1 ;j<=边长;j++){
                System.out.print("*"+"  ");
            }
            System.out.print("\n");//换行
        }
    }
}